import { Model } from '../core';
import { DataService } from '../core/DataService';

export interface Resource extends Model {
	detail: string;
	type: number;
	pattern: string;
	method: number;
}

class ResourceService extends DataService<ResourceService, Resource> {
	protected create(): ResourceService {
		return this.initTokenInstance('resource') as ResourceService;
	}
}

export const resourceService = new ResourceService();
